package es.ats.codington.festival.Mapper;
import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import es.ats.codington.festival.domain.Visitor;



public class VisitorMapper implements RowMapper<Visitor>{
	@Override
	public Visitor mapRow(ResultSet resultSet, int numRow) throws SQLException {
		Visitor visitor = new Visitor();

			visitor.setPassword(resultSet.getString("password"));
			visitor.setiDvisitor(resultSet.getInt("idvisitor"));
			visitor.setUsername(resultSet.getString("usuname"));
		return visitor;
	}


}
